package cn.rulian.base.auth.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import cn.rulian.base.auth.bo.Organ;

/**
 * 机构管理 DAO
 */
public interface OrganDao extends JpaRepository<Organ, Long> , JpaSpecificationExecutor<Organ>
{
	Organ findByCode(String code);
	
	List<Organ> findByFather_id(Long fatherId);
}
